import wx

class Toolbar(wx.ToolBar):
  def __init__(self, parent, name='', caption='', id=-1, 
              pos=wx.DefaultPosition, size=wx.DefaultSize, 
              style=wx.TB_FLAT | wx.TB_NODIVIDER):
    wx.ToolBar.__init__(self, parent, id, pos, size, style)
    self._name = name
    self._caption = caption

  def getName(self):
    return self._name

  def getCaption(self):
    return self._caption